using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class GamemodeData : MonoBehaviour
{
    private static GamemodeData instance;
    private GameManager gm;
    public string mode;
    public float Score;
    public int Comble;

    private void Awake()
    {
        instance = this;
        DontDestroyOnLoad(this);
    }
    void Start()
    {
        
    }

    void Update()
    {
        if (SceneManager.GetActiveScene() == SceneManager.GetSceneByName("GameScene"))
        {
            gm = GameObject.FindGameObjectWithTag("GM").GetComponent<GameManager>();
            Score = gm.Score;
            Comble = gm.Comble;
        }
    }
}
